#!/usr/bin/python
# author Yu
# 2023年06月20日
from multiprocessing import Process
import os
value = 0
def run_proc():
    print(f'子进程{value}')
if __name__ == '__main__':
    process = Process(target=run_proc)
    process.start()
    value=5
    print(f'父进程{value}')
    process.join()#等待子进程，回收子进程的资源